package com.smartstate.admin.biz.entity.dto;

import com.smartstate.common.base.dto.BaseDTO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
public class PermissionDto extends BaseDTO implements Serializable {

    @ApiModelProperty(value = "当前登录用户id",hidden = true)
    private String userId;

    @ApiModelProperty(value = "权限名称")
    private String name;

    @ApiModelProperty(value = "权限编码")
    private String code;

    @ApiModelProperty(value = "")
    private String urlPath;

    @ApiModelProperty(value = "父级权限")
    private String pid;

    @ApiModelProperty(value = "菜单类型 （0菜单 1按钮, 2读接口,3写接口")
    private Integer type;

    @ApiModelProperty(value = "图标")
    private String icon;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "组件")
    private String component;

    @ApiModelProperty(value = "pc和app(0:pc,1:app)")
    private Integer isWeb;

    private List<PermissionDto> apiConfig;


}
